"""
工具模块初始化
"""
from .db_utils import DBUtils
from .mongo_utils import MongoUtils
from .data_utils import DataUtils
from .data_utils_ext import DataUtilsExt
from .file_utils import FileUtils
from .file_utils_ext import FileUtilsExt
from .time_utils import TimeUtils
from .encryption_utils import EncryptionUtils
from .logger import setup_logger, get_app_logger, get_task_logger

# 合并FileUtils和FileUtilsExt的方法
for method_name in dir(FileUtilsExt):
    if not method_name.startswith('_'):
        method = getattr(FileUtilsExt, method_name)
        if callable(method):
            setattr(FileUtils, method_name, method)

# 合并DataUtils和DataUtilsExt的方法
for method_name in dir(DataUtilsExt):
    if not method_name.startswith('_'):
        method = getattr(DataUtilsExt, method_name)
        if callable(method):
            setattr(DataUtils, method_name, method)

__all__ = [
    'DBUtils', 
    'MongoUtils', 
    'DataUtils', 
    'FileUtils', 
    'TimeUtils', 
    'EncryptionUtils',
    'setup_logger',
    'get_app_logger',
    'get_task_logger'
]